package com.ling.dao;

import com.ling.bean.Question;
import com.ling.bean.StarQuestion;
import com.ling.bean.StarQuestionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StarQuestionMapper {
    //定制查询
    List<Question> selectByUserIdWithQuestion(String userId);

    long countByExample(StarQuestionExample example);

    int deleteByExample(StarQuestionExample example);

    int deleteByPrimaryKey(String id);

    int insert(StarQuestion record);

    int insertSelective(StarQuestion record);

    List<StarQuestion> selectByExample(StarQuestionExample example);

    StarQuestion selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") StarQuestion record, @Param("example") StarQuestionExample example);

    int updateByExample(@Param("record") StarQuestion record, @Param("example") StarQuestionExample example);

    int updateByPrimaryKeySelective(StarQuestion record);

    int updateByPrimaryKey(StarQuestion record);
}